<div>
	<div class="table-title"><span class="table-title-icon"></span><span>导入旅馆信息</span></div>
	<div class="import-container full-width">
		<form action=""  name="importForm" novalidate >
			<div class="row">
				<div class="col-md-4 name"><span style="color:red">*</span>旅馆编码：</div>
				<div class="col-md-5 value">
					<input type="text" ng-class="{'error-input':importForm.lgbm.$invalid&&importForm.lgbm.$dirty}" name="lgbm" ng-model="form.lgbm" value="" ng-model="form.lgbm" ng-disabled="changeFlag=='change'" class="form-control" required>
					<span class="clear-input" ng-show="changeFlag==''" ng-click="clearInput('lgbm')"></span>
				</div>
				<div class="col-md-3 error" ng-show="importForm.lgbm.$dirty">
					<img class="form-icon" ng-show="importForm.lgbm.$invalid" src="../img/错.png" alt="">
					<span style="color:red"  ng-show="importForm.lgbm.$error.required">旅馆编码为必填项。</span>
					<img class="form-icon" ng-show="importForm.lgbm.$valid" src="../img/对.png" alt="">
				</div>
			</div>
			<div class="row">
				<div class="col-md-4 name"><span style="color:red">*</span>旅馆名称：</div>
				<div class="col-md-5 value">
					<input type="text" ng-class="{'error-input':importForm.lgmc.$invalid&&importForm.lgmc.$dirty}" name="lgmc" ng-model="form.lgmc" value="" ng-model="form.lgmc" class="form-control" required>
					<span class="clear-input" ng-click="clearInput('lgmc')"></span>
				</div>
				<div class="col-md-3 error" ng-show="importForm.lgmc.$dirty">
					<img class="form-icon" ng-show="importForm.lgmc.$invalid" src="../img/错.png" alt="">
					<span style="color:red"  ng-show="importForm.lgmc.$error.required">旅馆名称为必填项。</span>
					<img class="form-icon" ng-show="importForm.lgmc.$valid" src="../img/对.png" alt="">
				</div>
			</div>
			<div class="row">
				<div class="col-md-4 name"><span style="color:red">*</span>场所类别：</div>
				<div class="col-md-5 value">
					<input type="text" disabled value="旅馆"  class="form-control">
				</div>
				<div class="col-md-3"></div>
			</div>
			<div class="row">
				<div class="col-md-4 name"><span style="color:red">*</span>旅馆地址：</div>
				<div class="col-md-5 value">
					<input type="text" ng-class="{'error-input':importForm.dz.$invalid&&importForm.dz.$dirty}" name="dz" ng-model="form.dz" value="" ng-model="form.dz" class="form-control" required>
					<span class="clear-input" ng-click="clearInput('dz')"></span>
				</div>
				<div class="col-md-3 error" ng-show="importForm.dz.$dirty">
					<img class="form-icon" ng-show="importForm.dz.$invalid" src="../img/错.png" alt="">
					<span style="color:red"  ng-show="importForm.dz.$error.required">旅馆地址为必填项。</span>
					<img class="form-icon" ng-show="importForm.dz.$valid" src="../img/对.png" alt="">
				</div>
			</div>
			<div class="row">
				<div class="col-md-4 name">负责人：</div>
				<div class="col-md-5 value">
					<input type="text" value="" ng-model="form.fzr" class="form-control">
				</div>
				<div class="col-md-3"></div>
			</div>
			<div class="row">
				<div class="col-md-4 name">联系电话：</div>
				<div class="col-md-5 value">
					<input type="text" value="" name="lxdh" ng-pattern="/(^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$)|(^0?[1][358][0-9]{9}$)/" ng-model="form.lxdh" class="form-control" ng-class="{'error-input':importForm.lxdh.$invalid&&importForm.lxdh.$dirty}">
					<span class="clear-input" ng-click="clearInput('lxdh')"></span>
				</div>
				<div class="col-md-3 error" ng-show="importForm.lxdh.$dirty">
					<img class="form-icon" ng-show="importForm.lxdh.$invalid&&importForm.lxdh.$dirty" src="../img/错.png" alt="">
					<img class="form-icon" ng-show="importForm.lxdh.$valid&&importForm.lxdh.$dirty" src="../img/对.png" alt="">
					<span style="color:red" ng-show="importForm.lxdh.$error.pattern">电话格式不正确</span>
				</div>
			</div>
			<div class="row">
				<div class="col-md-4 name">是否有证：</div>
				<div class="col-md-5 value">
					<ui-select ng-model="form.mark">
		    			<ui-select-match>
		       				<span ng-bind="$select.selected"></span>
		    			</ui-select-match>
		    			<ui-select-choices repeat="item in sfGroup">
		        			<span ng-bind="item"></span>
		    			</ui-select-choices>
					</ui-select>
				</div>
				<div class="col-md-3"></div>
			</div>
			<div class="row">
				<div class="col-md-4 name"><span style="color:red">*</span>管辖街道：</div>
				<div class="col-md-5 value">
					<ui-select ng-model="form.street" name="street" on-select="checkCommunity($item)" ng-class="{'error-select':importForm.street.$invalid&&importForm.street.$dirty}" required >
		    			<ui-select-match>
		       				<span ng-bind="$select.selected.street"></span>
		    			</ui-select-match>
		    			<ui-select-choices repeat="item in (SAndCGroup | unique:'street' | filter: $select.search) track by item.id">
		        			<span ng-bind="item.street"></span>
		    			</ui-select-choices>
					</ui-select>
				</div>
				<div class="col-md-3 error" ng-show="importForm.street.$dirty">
					<img class="form-icon" ng-show="importForm.street.$invalid" src="../img/错.png" alt="">
					<span style="color:red"  ng-show="importForm.street.$error.required">管辖街道为必填项。</span>
					<img class="form-icon" ng-show="importForm.street.$valid" src="../img/对.png" alt="">
				</div>
			</div>
			<div class="row">
				<div class="col-md-4 name"><span style="color:red">*</span>社区划分：</div>
				<div class="col-md-5 value">
					<ui-select ng-model="form.community" name="community" on-select="pushStreet($item)" ng-class="{'error-select':importForm.community.$invalid&&importForm.community.$dirty}" required>
		    			<ui-select-match>
		       				<span ng-bind="$select.selected.community"></span>
		    			</ui-select-match>
		    			<ui-select-choices repeat="item in (SAndCGroup  | sort:'street':form.street.street|filter: $select.search) track by item.id">
		        			<span ng-bind="item.community"></span>
		    			</ui-select-choices>
					</ui-select>
				</div>
				<div class="col-md-3 error" ng-show="importForm.community.$dirty">
					<img class="form-icon" ng-show="importForm.community.$invalid" src="../img/错.png" alt="">
					<span style="color:red"  ng-show="importForm.community.$error.required">社区划分为必填项。</span>
					<img class="form-icon" ng-show="importForm.community.$valid" src="../img/对.png" alt="">
				</div>
			</div>
		</form>
		<div class="row last-row">
			<div class="btn-field full-width">
				<div class="info-cancel-btn" ng-click="fresh()"><img src="../img/取消.png" class="btn-icon"  alt=""><span>取消提交</span></div>
				<div class="info-btn" ng-click="submitForm()"><img src="../img/提交.png" class="btn-icon"  alt=""><span>确认提交</span></div>
			</div>
		</div>
	</div> 
</div>
<div class="import-table">
	<div class="table-title"><span class="table-title-icon"></span><span>旅馆信息列表</span><span class="search-input pull-right"><span ></span><input type="text" placeholder="搜索旅馆信息" name="search_input" ng-model="searchText"></span></div>
	<div>
		<table class="detail-table">
			<thead>
				<th width="5%">序号</th>
				<th width="8%">旅馆代码</th>
				<th width="17%">旅馆名称</th>
				<th width="15%">旅馆地址</th>
				<th width="8%">负责人</th>
				<th width="10%">联系电话</th>
				<th width="7%">是否有证</th>
				<th width="10%">管辖单位<img src="../img/排序降序.png" ng-click="clickSort('-street')" alt=""></th>
				<th width="10%">社区<img src="../img/排序降序.png" ng-click="clickSort('-community')" alt=""></th>
				<th width="10%">操作</th>
			</thead>
			<tbody>
				<tr  ng-repeat="item in commList  track by $index">
					<td>{{pageOption.current*pageOption.pageSize+$index+1}}</td>
					<td>{{item.lgbm}}</td>
					<td>{{item.lgmc}}</td>
					<td>{{item.dz}}</td>
					<td>{{item.fzr}}</td>
					<td>{{item.lxdh}}</td>
					<td>{{item.mark}}</td>
					<td>{{item.street}}</td>
					<td>{{item.community}}</td>
					<td class="lastCol">
						<div>
							<span class="modify" ng-click="change(pageOption.current*pageOption.pageSize+$index)">修改</span>
							<span class="delete" ng-click="delete(item.lgbm)">删除</span>
						</div>
						
					</td>
				</tr>
			</tbody>
		</table>
		<div class="list-pagin"><pagining pageOption="pageOption" callBack="getData(item)"></pagining></div>
	</div>	
</div>
<hint hintOption="hintOption" clickSubmit="clickSubmit()" clickClose="clickCancel()"></hint>